how to callback hell and pyramid of doom in javascript